package com.loan.controller;

import com.loan.entity.QuickApply;
import com.loan.service.QuickApplyService;
import com.loan.utils.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author z
 */
@RestController
@RequestMapping("/quickApply")
@Api(tags = "快速申请管理")
public class QuickApplyController {
    @Resource
    private QuickApplyService quickApplyService;

    @ApiOperation(value = "申请提额",httpMethod = "POST",notes = "申请提额")
    @PostMapping("/apply")
    public ResponseResult<String> apply(@RequestBody QuickApply quickApply){
        quickApplyService.addQuickApply(quickApply);
        return ResponseResult.success("快速申请成功");
    }

}
